/*
 * PortletDetalleDescarga.java
 *
 * Created on November 15, 2007, 4:53 PM
 * Copyright fsanchez
 */
package gestionbaseem;

import com.sun.rave.web.ui.appbase.AbstractPageBean;
import javax.faces.FacesException;
import com.sun.rave.web.ui.component.Form;
import com.sun.rave.web.ui.component.ThemeLinks;
import javax.faces.component.html.HtmlPanelGrid;
import javax.faces.component.html.HtmlDataTable;
import com.sun.jsfcl.data.DefaultTableDataModel;
import javax.faces.component.UIColumn;
import javax.faces.component.html.HtmlOutputText;
import javax.faces.component.html.HtmlCommandButton;


public class PortletDetalleDescarga extends AbstractPageBean {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
    
    private int __placeholder;
    
    private ThemeLinks themeLinks1 = new ThemeLinks();
    
    public ThemeLinks getThemeLinks1() {
	return themeLinks1;
    }
    
    public void setThemeLinks1(ThemeLinks t) {
	this.themeLinks1 = t;
    }
    
    private Form form1 = new Form();
    
    public Form getForm1() {
	return form1;
    }
    
    public void setForm1(Form f) {
	this.form1 = f;
    }

    private HtmlPanelGrid gridPanelContainer = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanelContainer() {
        return gridPanelContainer;
    }

    public void setGridPanelContainer(HtmlPanelGrid hpg) {
        this.gridPanelContainer = hpg;
    }

    private HtmlPanelGrid gridPanelTable = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanelTable() {
        return gridPanelTable;
    }

    public void setGridPanelTable(HtmlPanelGrid hpg) {
        this.gridPanelTable = hpg;
    }

    private HtmlDataTable dataTableDetalle = new HtmlDataTable();

    public HtmlDataTable getDataTableDetalle() {
        return dataTableDetalle;
    }

    public void setDataTableDetalle(HtmlDataTable hdt) {
        this.dataTableDetalle = hdt;
    }

    private UIColumn columnUsuario = new UIColumn();

    public UIColumn getColumnUsuario() {
        return columnUsuario;
    }

    public void setColumnUsuario(UIColumn uic) {
        this.columnUsuario = uic;
    }

    private HtmlOutputText outputTextUsuario = new HtmlOutputText();

    public HtmlOutputText getOutputTextUsuario() {
        return outputTextUsuario;
    }

    public void setOutputTextUsuario(HtmlOutputText hot) {
        this.outputTextUsuario = hot;
    }

    private HtmlOutputText outputText2 = new HtmlOutputText();

    public HtmlOutputText getOutputText2() {
        return outputText2;
    }

    public void setOutputText2(HtmlOutputText hot) {
        this.outputText2 = hot;
    }

    private UIColumn columnFechaDesc = new UIColumn();

    public UIColumn getColumnFechaDesc() {
        return columnFechaDesc;
    }

    public void setColumnFechaDesc(UIColumn uic) {
        this.columnFechaDesc = uic;
    }

    private HtmlOutputText outputText3 = new HtmlOutputText();

    public HtmlOutputText getOutputText3() {
        return outputText3;
    }

    public void setOutputText3(HtmlOutputText hot) {
        this.outputText3 = hot;
    }

    private HtmlOutputText outputText4 = new HtmlOutputText();

    public HtmlOutputText getOutputText4() {
        return outputText4;
    }

    public void setOutputText4(HtmlOutputText hot) {
        this.outputText4 = hot;
    }

    private HtmlCommandButton buttonVolver = new HtmlCommandButton();

    public HtmlCommandButton getButtonVolver() {
        return buttonVolver;
    }

    public void setButtonVolver(HtmlCommandButton hcb) {
        this.buttonVolver = hcb;
    }
    
    // </editor-fold>
    public PortletDetalleDescarga() {
	// <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
	try {
	} catch (Exception e) {
	    log("Page1 Initialization Failure", e);
	    throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
	}
	// </editor-fold>
	// TODO: Add your own initialization code here (optional)
    }

    /** 
     * <p>Return a reference to the scoped data bean.</p>
     */
    protected RequestBeanBaseEm getRequestBeanBaseEm() {
        return (RequestBeanBaseEm)getBean("RequestBeanBaseEm");
    }


    /** 
     * <p>Return a reference to the scoped data bean.</p>
     */
    protected ApplicationBeanBaseEm getApplicationBeanBaseEm() {
        return (ApplicationBeanBaseEm)getBean("ApplicationBeanBaseEm");
    }


    /** 
     * <p>Return a reference to the scoped data bean.</p>
     */
    protected SessionBeanBaseEm getSessionBeanBaseEm() {
        return (SessionBeanBaseEm)getBean("SessionBeanBaseEm");
    }


    /** 
     * <p>Callback method that is called whenever a page is navigated to,
     * either directly via a URL, or indirectly via page navigation.
     * Customize this method to acquire resources that will be needed
     * for event handlers and lifecycle methods, whether or not this
     * page is performing post back processing.</p>
     * 
     * <p>Note that, if the current request is a postback, the property
     * values of the components do <strong>not</strong> represent any
     * values submitted with this request.  Instead, they represent the
     * property values that were saved for this view when it was rendered.</p>
     */
    public void init() {
        // Perform initializations inherited from our superclass
        super.init();
        // Perform application initialization that must complete
        // *before* managed components are initialized
        // TODO - add your own initialiation code here

        // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
        // Initialize automatically managed components
        // *Note* - this logic should NOT be modified
        try {
            _init();
        } catch (Exception e) {
            log("PortletDetalleDescarga Initialization Failure", e);
            throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
        }
        // </editor-fold>
        // Perform application initialization that must complete
        // *after* managed components are initialized
        // TODO - add your own initialization code here

    }

    /** 
     * <p>Callback method that is called after the component tree has been
     * restored, but before any event processing takes place.  This method
     * will <strong>only</strong> be called on a postback request that
     * is processing a form submit.  Customize this method to allocate
     * resources that will be required in your event handlers.</p>
     */
    public void preprocess() {
    }

    /** 
     * <p>Callback method that is called just before rendering takes place.
     * This method will <strong>only</strong> be called for the page that
     * will actually be rendered (and not, for example, on a page that
     * handled a postback and then navigated to a different page).  Customize
     * this method to allocate resources that will be required for rendering
     * this page.</p>
     */
    public void prerender() {
    }

    /** 
     * <p>Callback method that is called after rendering is completed for
     * this request, if <code>init()</code> was called (regardless of whether
     * or not this was the page that was actually rendered).  Customize this
     * method to release resources acquired in the <code>init()</code>,
     * <code>preprocess()</code>, or <code>prerender()</code> methods (or
     * acquired during execution of an event handler).</p>
     */
    public void destroy() {
    }

    /** 
     * <p>Automatically managed component initialization.  <strong>WARNING:</strong>
     * This method is automatically generated, so any user-specified code inserted
     * here is subject to being replaced.</p>
     */
    private void _init() throws Exception {
    }


    public String buttonVolver_action() {
	 this.getSessionBeanBaseEm().setRenderedPanelGridGeneracion(false);
        return "volver";
    }
}
